<!DOCTYPE HTML>
<title>Canvas test: 2d.shadow.canvas.basic</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="2d.shadow.image.scale.html" title="2d.shadow.image.scale">
<link rel="next" href="2d.shadow.canvas.transparent.1.html" title="2d.shadow.canvas.transparent.1">
<body class="show_output">
<p>
 <a href="2d.shadow.image.scale.html" accesskey="p" title="[p] 2d.shadow.image.scale">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="2d.shadow.canvas.transparent.1.html" accesskey="n" title="[n] 2d.shadow.canvas.transparent.1">&gt;</a>
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.shadow.html">shadow</a>.<a href="index.2d.shadow.canvas.html">canvas</a>.basic</h1>
<p class="desc"></p>
<div class="refs">References:
<ul>

</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt="">
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

var canvas2 = document.createElement('canvas');
canvas2.width = 100;
canvas2.height = 50;
var ctx2 = canvas2.getContext('2d');
ctx2.fillStyle = '#f00';
ctx2.fillRect(0, 0, 100, 50);

ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.shadowColor = '#0f0';
ctx.shadowOffsetY = 50;
ctx.drawImage(canvas2, 0, -50);

_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");


});
</script>

